import QtQuick 2.0
import QtQuick.Particles 2.0
Rectangle {
    id: root
    width: 480; height: 160
    color: "#1F1F1F"

    ParticleSystem {    //定义粒子系统
        id: particleSystem
    }

    ImageParticle{   //图像粒子
        source: "assets/star.png"
        system: particleSystem
        color: '#FFD700'
        colorVariation: 0.2 //不同粒子性颜色变化+/-20%
        rotation: 15   //顺时针旋转15
        rotationVariation: 5 //不同粒子在+/-5度之间变化
        rotationVelocity: 45 //每个例子会不断的以每秒45度旋转
        rotationVelocityVariation: 15 //每个粒子的旋转速度在+/-15度之间变化
        entryEffect: ImageParticle.Scale  //粒子的缩放
    }

    Emitter {           //发射器
        id: emitter
        anchors.fill: parent
        system: particleSystem
        lifeSpan: 8000
        size: 16
        endSize: 32
    }


}
